package com.example.abstractfactorypattern.factory;

import com.example.abstractfactorypattern.product.fruit.AbstractFruit;
import com.example.abstractfactorypattern.product.fruit.NorthernFruit;
import com.example.abstractfactorypattern.product.vegetable.AbstractVegetable;
import com.example.abstractfactorypattern.product.vegetable.NorthernVegetable;

// 北方农场
public class NorthernFarm implements AbstractFarm{

    // 生产北方水果
    @Override
    public AbstractFruit produceFruit() {
        return new NorthernFruit();
    }

    // 生产北方蔬菜
    @Override
    public AbstractVegetable produceVegetable() {
        return new NorthernVegetable();
    }
}
